﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using Microsoft.Practices.Unity;
using COM.Web;
using SampleApp.Service;

namespace SampleApp.Web.Service
{
    public class AppStartService
    {
        private static AppStartService instance;
        public static AppStartService Instance
        {
            get
            {
                return instance ?? (instance = new AppStartService());
            }
        }

        public void Start()
        {
            Unity.Instance.RegisterAppService();
            Unity.Instance.RegisterSampleService();
            Unity.Instance.GetService<IAppPermissionRegister>().RegisterRoleTypes();
            Unity.Instance.GetService<IAppPermissionRegister>().RegisterRoleActionList();
        }

        
    }
}